﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Main.Master" Inherits="System.Web.Mvc.ViewPage<Defect_Tracking_System.Models.Account>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="page-heading"><h1>View User's Information</h1></div>

<table cellspacing="0" cellpadding="0" border="0" width="100%" id="content-table">
<tbody><tr>
	<th class="sized" rowspan="3"><img height="300" width="20" alt="" src="/Content/images/shared/side_shadowleft.jpg"></th>
	<th class="topleft"></th>
	<td id="tbl-border-top">&nbsp;</td>
	<th class="topright"></th>
	<th class="sized" rowspan="3"><img height="300" width="20" alt="" src="/Content/images/shared/side_shadowright.jpg"></th>
</tr>
<tr>
	<td id="tbl-border-left"></td>
	<td>
	<!--  start content-table-inner -->
	<div id="content-table-inner">
	
	<table cellspacing="0" cellpadding="0" border="0" width="100%">
	<tbody><tr valign="top">
	<td>		
	
        <!-- start id-form -->
        <% Html.BeginForm(); %>
        <% if (ViewData["message"] != null)
            {%>
            <div id="message-yellow">
			<table border="0" width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td class="yellow-left"><%: ViewData["message"] %></td>
				<td class="yellow-right"><a class="close-yellow"><img src="/Content/images/table/icon_close_yellow.gif" alt=""></a></td>
			</tr>
			</table>
			</div>
        <% } %>
        <table cellspacing="0" cellpadding="0" border="0" id="id-form">
        <tbody>
        <tr>
            <th valign="top">UserName:</th>
            <td><%:Model.UserName %></td>
            <td></td>
        </tr>
        <tr>
            <th valign="top">First Name:</th>
            <td><%:Model.Profiles.FirstOrDefault().FirstName  %></td>
        </tr>
        <tr>
            <th valign="top">Last Name:</th>
            <td><%:Model.Profiles.FirstOrDefault().LastName %></td>
        </tr>       
        <tr>
            <th valign="top">Email:</th>
            <td><%:Model.Profiles.FirstOrDefault().Email %></td>
        </tr>
        <tr>
            <th valign="top">Address:</th>
            <td><%:Model.Profiles.FirstOrDefault().Address%></td>
        </tr>
        <tr>
            <th valign="top">Created Date:</th>
            <td><%:Model.CreatedDate %></td>
        </tr>
        <tr>
            <th valign="top">Role:</th>
            <td><%:Model.Role %>
            </td>
            <td></td>            
        </tr>
        <tr>
            <th valign="top">IsActive:</th>
			<td><%:Model.IsActive %></td>          
        </tr>
        </tbody>
        </table>
        <% if(User.IsInRole("Group Admin")){%>
        <%: Html.ActionLink("Edit", "Edit", new {EditUser = Model.UserName}, new {@class="button1"}) %>
        <%} %>
        <% if(User.IsInRole("Group Admin") && Model.Role!="Group Admin"){ %>
        <%: Html.ActionLink("Delete", "Delete", new {EditUser = Model.UserName}, new {@class="button2"}) %>
        <%} %>
        <% if(User.IsInRole("Group Admin")){ %>
        <%: Html.ActionLink("Back", "Index", new {EditUser = Model.UserName}, new {@class="button2"}) %>
        <% } else { %>
        <%: Html.ActionLink("Back", "Index", "Defect", new {EditUser = Model.UserName}, new {@class="button2"}) %>
        <% } %>
        <% Html.EndForm(); %>
        <!-- end id-form  -->

	</td>
	<td>
<div class="margin-padding">
	<!--  start related-activities -->
	<div id="related-activities">
		
		<!--  start related-act-top -->
		<div id="related-act-top">
		<img height="43" width="271" alt="" src="/Content/images/shared/Helper.png" />
		</div>
		</div>
		<!-- end related-act-top -->
		
		<!--  start related-act-bottom -->
		<div id="related-act-bottom">
		
			<!--  start related-act-inner -->
			<div id="related-act-inner">
			
				<div class="left"><a href=""><img height="21" width="21" alt="" src="/Content/images/forms/icon_plus.gif"></a></div>
				<div class="right">
					<h5>Change Password</h5>
					You can change your password if you like by ...
					<ul class="greyarrow">
						<li><a href="/Help?Url=/Content/Help/AccountManagement_Help.html-ChangePassword">Click here to visit</a> </li>
					</ul>
				</div>
				
				<div class="clear"></div>
				<div class="lines-dotted-short"></div>
				
				<div class="left"><a href=""><img height="21" width="21" alt="" src="/Content/images/forms/icon_minus.gif"></a></div>
				<div class="right">
                    <h5>Reset Password</h5>
					Manager all accounts. You can reset password of any account in group ...
					<ul class="greyarrow">
						<li><a href="/Help?Url=/Content/Help/AccountManagement_Help.html-ResetPassword">Click here to visit</a> </li>
					</ul>
				</div>
				
				<div class="clear"></div>
				<div class="lines-dotted-short"></div>
				
				<div class="left"><a href=""><img height="21" width="21" alt="" src="/Content/images/forms/icon_edit.gif"></a></div>
				<div class="right">
					<h5>Change Email Notification</h5>
					Manager all accounts. You can change email notification to recieve email from system when ...
					<ul class="greyarrow">
						<li><a href="/Help?Url=/Content/Help/AccountManagement_Help.html-EmailSettings">Click here to visit</a> </li>
					</ul>
				</div>
				<div class="clear"></div>
				
			</div>
			<!-- end related-act-inner -->
			<div class="clear"></div>
		
		</div>
		<!-- end related-act-bottom -->
	
	</div>
	<!-- end related-activities -->
</div>
</td>
</tr>
<tr>
<td><img height="1" width="695" alt="blank" src="/Content/images/shared/blank.gif"></td>
<td></td>
</tr>
</tbody></table>
 
<div class="clear"></div>
 

</div>
<!--  end content-table-inner  -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
	<th class="sized bottomleft"></th>
	<td id="tbl-border-bottom">&nbsp;</td>
	<th class="sized bottomright"></th>
</tr>
</tbody></table>

<div class="clear">&nbsp;</div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Fotter" runat="server">


</asp:Content>
